package com.xie.o2o.util;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 * @create: xie
 */
public class LogUtil {
    /**
     * 把原始的异常信息转成字符串，返回字符串
     * @param e
     * @return
     */
    public static String getMsg(Exception e) {
        StringWriter sw = new StringWriter();
        e.printStackTrace(new PrintWriter(sw, true));
        String str = sw.toString();
        return str;
    }
}
